package com.yinhai.mycat_test.service.write.impl;

import com.yinhai.mycat_test.entity.IDCard;
import com.yinhai.mycat_test.mapper.write.IDWriteMapper;
import com.yinhai.mycat_test.service.write.IDCardWriteService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class IDCardWriteServiceImpl implements IDCardWriteService {

    @Resource
    IDWriteMapper idWriteMapper;

    @Override
    public void insertIDCard(IDCard idCard) {
        idWriteMapper.insertIDCard(idCard);
    }

    @Override
    public void deleteAllIDCard() {
        idWriteMapper.deleteAllIDCard();
    }

    @Override
    public void batchDeleteIDCardById(List<Long> list) {
        idWriteMapper.batchDeleteIDCardById(list);
    }

    @Override
    public void batchInsertIDCard(List<IDCard> list) {
        idWriteMapper.batchInsertIDCard(list);
    }

    @Override
    public void deleteIDCardById(Long id) {
        idWriteMapper.deleteIDCardById(id);
    }
}
